<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
<link rel="stylesheet" media="screen" type="text/css"
	href="../../mairie/styles/1CssMaster.css" />
<link rel="stylesheet" media="screen" type="text/css"
	href="styles/ficheEnfant.css" />
<link rel="stylesheet" media="screen" type="text/css"
	href="styles/tableau.css" />


<title>Dossier Enfant donnees personnelles</title>

</head>
<body>

	<div id="tout">
		<div id="headerDroite">
			<h:form>
				<h:panelGrid columns="2">
					<h:outputText style="center:left" value="#{mbConnexion.leLogin}" />
					<h:commandButton value="Déconnexion"
						action="#{mbConnexion.deconnexion}" />
					<h:outputText style="center:left" />
					<h:outputText style="center:left" />
				</h:panelGrid>
			</h:form>
		</div>
		<div id="divTitre">
			<h1 id="nomLogiciel">Gepeto</h1>
			<img alt="" src="../../mairie/imagesGepeto/plumeSansFond.png"
				width="80px" height="80px" />

		</div>
		


		<div id="divMenuHaut">

			<ul id="ulMenuHaut">

				<li class="liMenuHaut"><a href="ficheEnfant.xhtml">Dossier
						Enfant</a></li>
				<li class="liMenuHaut"><a href="inscription.xhtml">Inscription</a></li>
				<li class="liMenuHaut"><a href="pointage.xhtml">Pointage</a></li>
				<li class="liMenuHaut"><a href="factConsultation.xhtml">Facturation</a></li>
				<li class="liMenuHaut"><a href="editions.xhtml">Editions</a></li>
				<li class="liMenuHaut"><a href="personnel.xhtml">Personnel</a></li>
			</ul>
		</div>

		<div id="divSousMenuGauche">
<h:form>
			<ul id="ulSousMenuGauche">
				<li class="liSousMenuGauche"><a href="ficheEnfant.xhtml">Fiche
						Enfant</a></li>
				<li class="liSousMenuGauche">
                	 <h:commandLink actionListener="#{beanInscriptionHib.actionInscription}" value="Inscrire" action="enfantHistorique">
                	<f:attribute name="NomEnfant" value="#{beanEleveMairie.nomEleveMairie}" />
                	<f:attribute name="PrenomEnfant" value="#{beanEleveMairie.prenomEleveMairie}" />
                	<f:attribute name="IdEnfant" value="#{beanEleveMairie.idElv}" />
                </h:commandLink>
				</li>		
				<li class="liSousMenuGauche">
					<h:commandLink actionListener="#{beanTf.recupEleve}" value="Tarification
						Facturation" action="tarifFacture">
                		<f:attribute name="NomEnfant" value="#{beanEleveMairie.nomEleveMairie}"/>
                		<f:attribute name="PrenomEnfant" value="#{beanEleveMairie.prenomEleveMairie}"/>
                	</h:commandLink>
                </li>
                
				<li class="liSousMenuGauche">
					<a href="#">Relevé des présences</a>
				</li>
				
				<li class="liSousMenuGauche">
					<h:commandLink actionListener="#{beanArchivage.recupEleve}"
						value="Archives" action="archives">
						<f:attribute name="NomEnfant" value="#{beanEleveMairie.nomEleveMairie}"/>
                		<f:attribute name="PrenomEnfant" value="#{beanEleveMairie.prenomEleveMairie}"/>
					</h:commandLink>
				</li>
				
				
			</ul>
</h:form>

		</div>
		<div id="centre">

			<!-- 	///////////////////////////////////////////////recherche enfant///////////////////////////  -->
			<div id="divRecherche">
				<h:form id="formulaire">
					<table>
						<tr>
							<td><label>Nom :</label></td>
							<td><h:inputText id="nom" value="#{beanEleveMairie.nomel}"
									size="15" /></td>
							<td><label for="pass">Prénom :</label></td>
							<td><h:inputText id="prenom"
									value="#{beanEleveMairie.prenomel}" size="15" /></td>
							<td><h:commandButton value="rechercher" type="submit"
									action="#{beanEleveMairie.chargementFicheEnfant}">
									<f:ajax execute="nom prenom" render="infEnfant formRef formRecup" />
								</h:commandButton></td>

						</tr>
					</table>
				</h:form>


			</div>
			<!-- 	///////////////////////////////////////////////renseignements enfant///////////////////////////  -->

			<div id="colonneGauche">
				<fieldset id="fieldsetGauche">
					<legend>
						<b>Enfant</b>
					</legend>
					<h:form id="infEnfant">
					<table>
						<tr>

							<td><label>Nom:</label></td>
							<td><h:outputText value="#{beanEleveMairie.nomEleveMairie}"
									size="21" maxlength="256" /></td>
						</tr>
						<tr />
						<tr>
							<td><label>Prénom:</label></td>
							<td><h:outputText
									value="#{beanEleveMairie.prenomEleveMairie}" size="21"
									maxlength="256" /></td>
						</tr>
						<tr />
						<tr>
							<td><label>Date de naissance:</label></td>
							<td><h:outputText
									value="#{beanEleveMairie.dateNaissElMairie}" size="21"
									maxlength="256" /></td>
						</tr>
						<tr />

						<tr>
							<td><label>Sexe:</label></td>

							<td><h:outputText value="#{beanEleveMairie.sexeElMairie}"
									size="21" maxlength="256" /></td>
						</tr>
						<tr />

						<tr>
							<td><label>Ecole:</label></td>
							<td><h:outputText value="#{beanEleveMairie.nomEcoleM}"
									size="21" maxlength="256" /></td>
						</tr>
						<tr />
						<tr>
							<td><label>Niveau:</label></td>
							<td><h:outputText value="#{beanEleveMairie.nomNiveauM}"
									size="21" maxlength="256" /></td>

						</tr>
						<tr />
						<tr>
							<td><label>Allergies:</label></td>
							<td><h:outputText
									value="#{beanEleveMairie.allergieEleveMairie}" size="21"
									maxlength="256" /></td>
						</tr>
						<tr />

						<tr>
							<td><label>Vaccins:</label></td>
							<td><h:inputTextarea
									value="#{beanEleveMairie.vaccinElMairie}" /></td>

						</tr>

						<tr></tr>
						<!-- 					<tr> -->
						<!-- 						<td colspan=2 align="center"><input type="submit" -->
						<!-- 							name="modifier" value="modifier" /></td> -->
						<!-- 					</tr> -->

					</table>
					</h:form>
				</fieldset>
			</div>
			<!-- 	///////////////////////////////////////////////recherche référents///////////////////////////  -->

			<div id="colonneDroite">
				<fieldset id="fieldsetDroit" style="visibility: visible">

					<legend>
						<b>Ses référents</b>
					</legend>
					<h:form id="formRef">
						<table id="infoAdulte">
							<tr>
								<td><label>Liste des référents:</label></td>
								<td>
								 <h:selectOneMenu id="referents"
										value="#{beanEleveMairie.referent}">
										<f:ajax listener="#{beanEleveMairie.changeReferent}" render="formRef formRecup"  />
										<f:selectItems value="#{beanEleveMairie.listeAutorises}" />								
									</h:selectOneMenu>
								</td>

							</tr>
							<tr />
							<tr>
								<td><label>Nom:</label></td>
								<td><h:outputText id="idNomAdulteM" value="#{beanEleveMairie.nomAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr />
							<tr>
								<td><label>Prénom:</label></td>
								<td><h:outputText value="#{beanEleveMairie.prenomAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr />
							<tr>
								<td><label>Adresse:</label></td>
								<td><h:outputText value="#{beanEleveMairie.adressAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr />
							<tr>
								<td><label>Tél. fixe:</label></td>
								<td><h:outputText value="#{beanEleveMairie.telFixAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr />
							<tr>
								<td><label>Tél. portable:</label></td>
								<td><h:outputText value="#{beanEleveMairie.telPortAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr />
							<tr>
								<td><label>Tél. travail:</label></td>
								<td><h:outputText value="#{beanEleveMairie.telTravAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr />
							<tr>
								<td><label>Email :</label></td>
								<td><h:outputText value="#{beanEleveMairie.mailAdulteM}"
										size="21" maxlength="256" /></td>
							</tr>
							<tr></tr>

							<tr />
							<tr>
								<td><label>Responsable Légal</label></td>
								<td><h:selectBooleanCheckbox title="checkRL"
										value="#{beanEleveMairie.valRespLeg}">
									</h:selectBooleanCheckbox></td>
							</tr>
						</table>
					</h:form>
				</fieldset>
				<!-- 			<table border="1" id="listeRecupere" style="visibility: hidden"> -->
				<!-- 				<tr> -->
				<!-- 					<th>Nom</th> -->
				<!-- 					<th>Prénom</th> -->
				<!-- 					<th>Tél. portable</th> -->
				<!-- 				</tr> -->
				<!-- 				<tr> -->
				<!-- 					<td>Nom1Nom1</td> -->
				<!-- 					<td>Prénom1Prénom1</td> -->
				<!-- 					<td>Numéro1</td> -->
				<!-- 				</tr> </table>-->

				<div class="datagrid">
					<h:form id="formRecup">
						<h:dataTable id="listeRecupere"
							value="#{beanEleveMairie.adultesAutorises}" var="adAut"
							styleClass="order-table" headerClass="order-table-header"
							rowClasses="order-table-odd-row,order-table-even-row">

							<h:column>
								<f:facet name="header">Nom</f:facet>
    			#{adAut.nomAdulte}
    		</h:column>
							<h:column>
								<f:facet name="header">Prénom</f:facet>
    			#{adAut.prenomAdulte}
    		</h:column>
							<h:column>
								<f:facet name="header">Détail</f:facet>
								<h:commandLink actionListener="#{beanEleveMairie.action}">
									<f:attribute name="detailAdult" value="#{adAut.idAdulte}" />
									<h:outputText value="detail" />
								</h:commandLink>

							</h:column>
						</h:dataTable>
					</h:form>

				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript" src="jsMairie/recupereEnfant.js"></script>
</body>
</html>
